#include <stdio.h>
#include <stdint.h>
#include "mydata/model.h"

void
session_dump(Session *session)
{
    puts("Session: ");
    printf("uuid: %s\n", session->uuid);
    printf("user_id: %d\n", session->user_id);
    printf("time_create: %s\n", session->time_create);
    printf("attribute: %d\n", session->attribute);
}

void
user_dump(User *user)
{
    puts("User: ");
    printf("id: %d\n", user->id);
    printf("nickname: %s\n", user->nickname);
    printf("mail: %s\n", user->mail);
    printf("passwd: %s\n", user->passwd);
    printf("time_reg: %s\n", user->time_reg);
    printf("time_lastlogin: %s\n", user->time_lastlogin);
    printf("time_lastupdate: %s\n", user->time_lastupdate);
    printf("attribute: %d\n", user->attribute);
}

void
note_dump(Note *note)
{
    puts("Note: ");
    printf("id:%d\n", note->id);
    printf("owner_id:%d\n", note->owner_id);
    printf("uuid: %s\n", note->uuid);
    printf("title: %s\n", note->title);
    printf("content: %s\n", note->content);
    printf("time_create: %s\n", note->time_create);
    printf("time_lastupdate: %s\n", note->time_lastupdate);
    printf("version: %d\n", note->version);
    printf("attribute: %d\n", note->attribute);
}
